<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        input,
        button {
            outline: none;
        }
        
        div {
            display: block;
        }
        
        .headerq {
            width: 1424px;
            margin: 0 auto;
        }
        
        a {
            text-decoration: none;
        }
        
        .index-header {
            background-color: #fff;
        }
        
        .index-header .wrap {
            position: relative;
            width: 1200px;
            height: 100px;
            margin: 0 auto;
            display: grid;
            /*168px 250px 270px 480px*/
            grid-template-columns: 70px repeat(6, 100px) 480px;
            grid-template-rows: 50px 50px;
            justify-content: space-between;
            grid-gap: 5px;
        }
        
        .wrap {
            margin: 0 auto;
        }
        
        .index-nav .nav-index {
            width: 85px;
        }
        
        .index-nav>.wrap {
            height: 50px;
            width: 1420px;
            display: grid;
            grid-template-columns: 112px 85px repeat(6, minmax(110px, 110px)) 112px;
            grid-template-rows: 50px;
            justify-content: start;
            align-items: center;
            grid-column-gap: 0rem;
            background-color: #f2473d;
        }
        
        .index-nav a:hover,
        .index-nav .current {
            background-color: #d71a0f;
            transition: 0.8s;
        }
        
        .index-nav a {
            width: 110px;
            float: left;
            display: block;
            line-height: 50px;
            text-align: center;
            font-size: 18px;
            color: #fff;
            transition: opacity 0.3s;
        }
        
        .index-nav a:first-child {
            grid-column: 2;
            float: left;
            width: 85px;
            display: block;
            line-height: 50px;
            text-align: center;
            font-size: 18px;
            color: #fff;
            transition: opacity 0.3s;
        }
        
        .index-nav a:nth-last-child(2) {
            width: 100px;
            float: left;
            display: block;
            line-height: 50px;
            text-align: center;
            font-size: 18px;
            color: #fff;
            transition: opacity 0.3s;
            position: relative;
            padding-right: 35px;
            font-weight: bold;
        }
        /* .index-header>.wrap {
            height: 100px;
            position: relative;
            display: grid;
            grid-template-columns: 168px 250px 270px 480px;
            justify-content: space-between;
            grid-gap: 1rem; 
        
        overflow: hidden;
    }*/
        
        .index-adv a {
            grid-column: 6/7;
            color: #f2473d;
            font-size: 15px;
            margin-left: 118px;
            display: block;
            padding: 60px 0 0 0px;
            font-family: unset;
            max-width: 100%;
            border: none;
        }
        
        .index-search .search-box {
            height: 38px;
            margin-bottom: 5px;
        }
        
        img {
            /* max-width: 100%; */
            border: none;
            vertical-align: middle;
        }
        
        .index-logo a img {
            grid-column: 1/span 3;
            grid-row: 1/span 2;
            width: 168px;
            height: 60px;
            display: block;
            line-height: 60px;
            overflow: hidden;
            text-indent: 100%;
            margin: 13px 0;
            white-space: nowrap;
        }
        
        .index-search {
            float: right;
            margin: 22px 0 10px;
        }
        
        .index-search input[type="text"] {
            grid-column: 8;
            grid-row: 2;
            position: absolute;
            width: 450px;
            height: 36px;
            line-height: 36px;
            float: left;
            padding: 0 20px;
            background-color: #fff;
            border: 1px solid #e1e1e1;
            font-size: 14px;
            right: 12px;
            color: #666;
            border-radius: 50px 0 0 50px;
            box-shadow: 0 0 10px 3px rgba(0, 0, 0, .3);
        }
        
        .index-search .search-word li a {
            padding-right: 0.5rem;
            display: inline-grid;
            flex-wrap: nowrap;
            white-space: nowrap;
            color: #000;
        }
        
        .index-search .search-word li a:hover {
            color: #f2473d;
            transition: 0.5s;
        }
        
        .index-search .search-word {
            grid-column: 8;
            font-size: 12px;
            width: 400px;
            display: inline-flex;
            box-orient: horizontal;
            height: 20px;
            overflow: hidden;
            position: relative;
            left: 515px;
            /* position: absolute;
            right: 80px;
            top: 70px; */
        }
        
        .index-search input[type="text"]:focus {
            border-color: #f2473d;
            transition: all 0.5s linear;
        }
        
        .index-search input[type="submit"] {
            position: absolute;
            float: right;
            width: 48px;
            height: 38px;
            border: none;
            font-size: 17px;
            line-height: 38px;
            color: #fff;
            cursor: pointer;
            right: 0;
            transition: all 0.3s;
            border-radius: 0 50px 50px 0;
            box-shadow: 0 0 10px 3px rgba(0, 0, 0, .3);
            background: #f2473d url("img/search-btn.png") center no-repeat;
        }
        
        .wrap:after {
            content: "";
            display: table;
            clear: both;
        }
        
        ul>li {
            /* display: flex; */
            float: left;
            justify-content: start;
        }
        
        .join {
            width: 38px;
            position: absolute;
            right: 10px;
            top: 5px;
        }
        
        .index-nav .nav-downi img {
            grid-column: 8;
            vertical-align: top;
            /* padding-top: 8px; */
            position: absolute;
            right: 111px;
            top: -28px;
        }
    </style>
</head>

<body>
    <header>
        <div class="container">
            <div class="index-header">
                <div class="wrap">
                    <div class="index-logo">
                        <a href="index.html" target="_blank"><img src="img/logo.png" alt="" /></a>
                    </div>
                    <div class="index-adv">
                        <a href=""><img src="img/logoadver.png" alt="" /></a>
                    </div>
                    <div class="index-search">
                        <div class="search-box">
                            <input type="text" id="" class="" placeholder="请输入词条/文章/问题关键字" />
                            <input type="submit" id="" class="" value="" />
                        </div>
                        <div class="search-word">
                            <h4>热搜:&nbsp;&nbsp;</h4>
                            <ul type="none">

                                <li>
                                    <a href="">哈士奇</a>
                                </li>
                                <li>
                                    <a href="">拉布拉多</a>
                                </li>
                                <li>
                                    <a href="">萨摩耶</a>
                                </li>
                                <li>
                                    <a href="">金毛</a>
                                </li>
                                <li>
                                    <a href="">博美犬</a>
                                </li>
                                <li>
                                    <a href="">秋田犬</a>
                                </li>
                                <li>
                                    <a href="">贵宾犬</a>
                                </li>
                                <li>
                                    <a href="">布偶猫</a>
                                </li>
                                <!-- <li>
                                    <a href="">龙猫</a>
                                </li> -->
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="index-nav">
                    <div class="wrap">
                        <a href="" class="current">首页</a>
                        <a href="">宠物资讯</a>
                        <a href="">宠物美图</a>
                        <a href="">宠物大全</a>
                        <a href="">疾病百科</a>
                        <a href="">有宠商城</a>
                        <a href="">加盟开店<img class="join"src="img/hot.png" alt=""></a>
                        <a class="nav-downi" style="margin-left: 0;float:right" href="http://www.yc.cn/download"><img src="https://res.ycw.com/web/images/index/down-btn.png"></a>
                    </div>
                </div>
            </div>
        </div>
    </header>
</body>

</html>